package controllers

import (
	"GinWeb/services"

	"github.com/gin-gonic/gin"
)

// 创建结构体
type MsgNotifyController struct {
	msgService services.MsgService
}

// 创建构造函数
func NewMsgController(MsgService services.MsgService) *MsgNotifyController {
	return &MsgNotifyController{msgService: MsgService}
}

// 获取列表所有信息
func (m MsgNotifyController) GetMsgNotifyList(c *gin.Context) {
	m.msgService.GetMsgNotifyList(c)
}

// 添加提醒信息
func (m MsgNotifyController) AddMsgNotify(c *gin.Context) {
	m.msgService.AddMsg(c)
}

func (m MsgNotifyController) UpdateMsgNotify(c *gin.Context) {
	m.msgService.UpdateMsg(c)
}

func (m MsgNotifyController) DeleteMsgNotify(c *gin.Context) {
	m.msgService.DeleteMsg(c)
}
